package com.qujia.station.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class OutboundRecordsDto {

    @NotNull(message = "请选择调出门店")
    @ApiModelProperty(value = "调出油站id")
    private Long outboundStationId;

    @ApiModelProperty(value = "调出油站名称")
    private String outboundStationName;

    @NotNull(message = "请选择调入门店")
    @ApiModelProperty(value = "调入油站id")
    private Long storageStationId;

    @ApiModelProperty(value = "调入油站名称")
    private String storageStationName;

    @ApiModelProperty(value = "备注")
    private String notes;

    @Valid
    @ApiModelProperty(value = "调拨出库商品记录")
    private List<OutboundRecordsDetailsDto> outboundRecordsDetailsDtos;
}
